/*
 清除默认样式
 * */

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td {
    .reset-box-model();
    .reset-focus();
    .reset-font();
}

body {
    .reset-body();
    font-family: "Microsoft Yahei", Arial;
}

ol,
ul {
    .reset-list-style();
}

table {
    .reset-table();
}

caption,
th,
td {
    .reset-table-cell();
}

a,
img {
    color: inherit;
    border: none;
    text-decoration: none;
}

a {
    width: 100%;
    height: 100%;
}

* {
    -webkit-tap-highlight-color: transparent;
    -webkit-tap-highlight-color: transparent;
    -webkit-appearance: none;
}

.reset-box-model() {
    padding: 0;
    margin: 0;
    border: 0;
}

.reset-focus() {
    outline: 0;
}

.reset-font() {
    font-weight: inherit;
    font-style: inherit;
    font-family: inherit;
    font-size: 100%;
    vertical-align: baseline;
}

.reset-body() {
    line-height: 1;
    font-size: 4.5vw; //基础字体大小
}

.reset-table() {
    border-collapse: separate;
    border-spacing: 0;
    vertical-align: middle;
}

.reset-table-cell() {
    text-align: left;
    font-weight: normal;
    vertical-align: middle;
}

.reset-list-style() {
    list-style: none;
}

.reset-html5() when (@support-html5) {
    article,
    aside,
    details,
    figcaption,
    figure,
    footer,
    header,
    hgroup,
    menu,
    nav,
    section,
    summary,
    main {
        display: block;
        .reset-box-model();
        .reset-focus();
        .reset-font();
    }
    audio,
    canvas,
    video {
        .inline-block();
    }
    audio:not([controls]),
    [hidden] {
        display: none;
    }
}

//清除浮动
@support-ie-version: 7;
.clearfix() {
    &:before,
    &:after {
        display: table;
        content: "";
    }
    &:after {
        clear: both;
    }
}

.clearfix() when (@support-ie-version < 8) {
    *zoom: 1;
}

//清除框架自带的input css样式
.van-cell {
    padding: 0;
}

.van-hairline--top-bottom::after {
    border: 0;
}

.van-cell__value--alone {
    margin-top: 2vw;
}

input {
    outline: none;
    width: 100%;
    height: 10.5vw;
    font-size: @font16;
    color: @color1f3f59;
    font-weight: 700;
    border: none;
}

input::-webkit-input-placeholder,
textarea::-webkit-input-placeholder {
    color: @colorc5cfd5;
    font-weight: 400;
}

// 公用class
.up,
.sell {
    color: @up;
}

.down,
.buy {
    color: @down;
}

//头部主件css
#header {
    .returnHeader();
}

// 数据列表主件css
#data_list_warp {
    height: 110vw;
    background-color: #fff;
    .noList {
        .van-loading--black {
            position: relative;
            left: 48%;
            top: 10vw;
        }
    }
    .list_warp {
        padding-top: 4vw;
        padding-left: 2vw;
        box-sizing: border-box;
        .list {
            .clearfix();
            .height(16vw);
            font-size: @font14;
            .name,
            .price,
            .gains {
                float: left;
                width: 32%;
                text-align: center;
                color: @color1f3f59;
                font-weight: 700;
                .bg {
                    font-size: @font16;
                    display: inline-block;
                    width: 85%;
                    text-align: center;
                    line-height: 8.2vw;
                    border-radius: 3px;
                    color: @colorFFF;
                }
                .bg_up {
                    background: @up;
                }
                .bg_down {
                    background: @down;
                }
            }
            .price {
                color: @color5e5e5e;
            }
        }
    }
}

.returnHeader() {
    border-bottom: 1px solid @line;
    position: fixed;
    z-index: 999;
    width: 100%;
    background: #fff;
    color: @color1f3f59;
    text-align: center;
    font-weight: 700;
    .height(@headerTop);
    .van-icon {
        position: absolute;
        left: 4vw;
        top: 4vw;
    }
}


/**
 *     
 * 登陆注册个人中心系列头部公用
 */

.loginReight() {
    header {
        h2 {
            line-height: 15.5vw;
            text-align: right;
            color: @color5786d2;
            font-size: @font16;
            font-weight: 700;
        }
    }
}

.loginReightTitle() {
    .title {
        padding-bottom: 8vw;
        h2 {
            color: @color1f3f59;
            font-size: @font28;
            font-weight: 700;
            .height(12vw);
            margin-top: 4vw;
        }
        .alse {
            font-size: @font14;
            color: @color8c9fad;
            padding-top: 4vw;
            display: inline-block;
            letter-spacing: 1px;
        }
    }
    input {
        border-bottom: 1px solid @line;
    }
}

.allBtn() {
    margin-top: 8vw;
    background: @up;
    .height(10vw);
    text-align: center;
    color: #fff;
    border-radius: 5px;
    font-size: @font14;
}

//测变弹框
.van-right() {
    width: 100%;
    height: 100%;
    background-color: #FFFFFF;
    .contents {
        .contents(90%);
        padding: 5vw 0;
        .return {
            .height(8vw);
        }
        .contentsListWarp {
            .loginReightTitle();
            .contentsList {
                img {
                    width: 100%;
                }
            }
        }
    }
}